import request from "@/utils/request";
import { stringify } from "qs";
import { toFormData } from "@/utils/utils.jsx";

export async function getWarehouseList() {
	return request(`/zjf-wms/warehouse/list`);
}
export async function getBoxOrderGoods(params) {
	return request(`/new-wms/sorting-box/box-order-goods?${stringify(params)}`);
}
//分拣框列表
export async function getSortingBoxList(params) {
	return request(`/new-wms/sorting-box?${stringify(params)}`);
}
//获取打印数据
export async function getPrintTemp(params) {
	return request(`/new-wms/fmcgpurchases/getPrintTemp?${stringify(params)}`);
}
// 分拣墙列表
export async function getSortingWallList(params) {
	return request(`/new-wms/sorting-wall?${stringify(params)}`);
}

// 创建分拣墙
export async function addSortingWall(params) {
	return request(`/new-wms/sorting-wall`, {
		method: "post",
		data: params
	});
}

// 修改分拣墙
export async function updateSortingWall(params) {
	return request(`/new-wms/sorting-wall`, {
		method: "put",
		data: params
	});
}
export async function sortingWallUptdate(params) {
	return request(`/new-wms/sorting-wall`, {
		method: "put",
		data: params
	});
}
// 快递公司列表
export async function queryExpressList(params) {
	return request(`/blade-logistics/expresskxerp/expressKv?${stringify(params)}`);
}
